<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>商家详情 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #2563eb;
            --secondary-color: #3b82f6;
            --accent-color: #f59e0b;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
        }

        body {
            margin: 0;
            padding: 0;
            background: var(--background-light);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            border-radius: 40px;
        }

        .content {
            height: 100%;
            overflow-y: auto;
            background: var(--background-light);
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .header {
            height: 200px;
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1552566626-52f8b828add9?w=800&auto=format&fit=crop');
            background-size: cover;
            background-position: center;
            padding: 15px;
            position: relative;
        }

        .back-button {
            position: absolute;
            top: 15px;
            left: 15px;
            width: 36px;
            height: 36px;
            background: rgba(255,255,255,0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            text-decoration: none;
            backdrop-filter: blur(5px);
        }

        .restaurant-header {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            color: white;
        }

        .restaurant-name {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .restaurant-info {
            display: flex;
            gap: 15px;
            font-size: 14px;
            opacity: 0.9;
        }

        .menu-container {
            display: flex;
            height: calc(100% - 200px);
        }

        .category-list {
            width: 80px;
            background: white;
            overflow-y: auto;
        }

        .category-item {
            padding: 15px 10px;
            text-align: center;
            font-size: 13px;
            color: var(--text-secondary);
            border-left: 3px solid transparent;
            cursor: pointer;
        }

        .category-item.active {
            color: var(--primary-color);
            background: var(--background-light);
            border-left-color: var(--primary-color);
            font-weight: 500;
        }

        .dish-list {
            flex: 1;
            overflow-y: auto;
            padding: 15px;
        }

        .dish-item {
            display: flex;
            padding: 15px;
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
        }

        .dish-img {
            width: 100px;
            height: 100px;
            border-radius: 8px;
            object-fit: cover;
            margin-right: 15px;
        }

        .dish-info {
            flex: 1;
        }

        .dish-name {
            font-size: 16px;
            font-weight: 500;
            margin-bottom: 5px;
            color: var(--text-primary);
        }

        .dish-desc {
            font-size: 12px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .dish-price {
            color: #ee0a24;
            font-size: 16px;
            font-weight: 500;
        }

        .dish-price small {
            font-size: 12px;
        }

        .add-to-cart {
            width: 24px;
            height: 24px;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            padding: 0;
            margin-left: auto;
            cursor: pointer;
        }

        .cart-bar {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 50px;
            background: white;
            display: flex;
            align-items: center;
            padding: 0 15px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        }

        .cart-icon {
            width: 45px;
            height: 45px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            margin-right: 10px;
            position: relative;
            transition: all 0.3s ease;
        }

        .cart-icon:hover {
            transform: scale(1.05);
        }

        .cart-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #ee0a24;
            color: white;
            font-size: 12px;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: 500;
        }

        .cart-price {
            flex: 1;
            font-size: 16px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .checkout-button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 20px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .checkout-button:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        .checkout-button:active {
            transform: scale(0.98);
        }

        .checkout-button.disabled {
            background: #e5e7eb;
            color: var(--text-secondary);
            cursor: not-allowed;
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="content">
            <div class="header">
                <a href="index.html" class="back-button">
                    <i class="bi bi-chevron-left"></i>
                </a>
                <div class="restaurant-header">
                    <div class="restaurant-name">品味小厨</div>
                    <div class="restaurant-info">
                        <span>评分 4.8</span>
                        <span>月售 2000+</span>
                        <span>30分钟</span>
                    </div>
                </div>
            </div>

            <div class="menu-container">
                <div class="category-list">
                    <div class="category-item active">热销</div>
                    <div class="category-item">套餐</div>
                    <div class="category-item">主食</div>
                    <div class="category-item">小菜</div>
                    <div class="category-item">饮品</div>
                </div>

                <div class="dish-list">
                    <div class="dish-item">
                        <img src="https://images.unsplash.com/photo-1562967914-608f82629710?w=200&auto=format&fit=crop" alt="红烧肉" class="dish-img">
                        <div class="dish-info">
                            <div class="dish-name">红烧肉</div>
                            <div class="dish-desc">精选五花肉，传统工艺</div>
                            <div class="dish-price">
                                <small>¥</small>38
                                <button class="add-to-cart">
                                    <i class="bi bi-plus"></i>
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="dish-item">
                        <img src="https://images.unsplash.com/photo-1563379926898-05f4575a45d8?w=200&auto=format&fit=crop" alt="清炒时蔬" class="dish-img">
                        <div class="dish-info">
                            <div class="dish-name">清炒时蔬</div>
                            <div class="dish-desc">新鲜蔬菜，清淡爽口</div>
                            <div class="dish-price">
                                <small>¥</small>18
                                <button class="add-to-cart">
                                    <i class="bi bi-plus"></i>
                                </button>
                            </div>
                        </div>
                    </div>

                    <div class="dish-item">
                        <img src="https://images.unsplash.com/photo-1534422298391-e4f8c172dddb?w=200&auto=format&fit=crop" alt="米饭" class="dish-img">
                        <div class="dish-info">
                            <div class="dish-name">米饭</div>
                            <div class="dish-desc">东北大米，香糯可口</div>
                            <div class="dish-price">
                                <small>¥</small>2
                                <button class="add-to-cart">
                                    <i class="bi bi-plus"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="cart-bar">
                <a href="cart-detail.html" class="cart-icon">
                    <i class="bi bi-cart"></i>
                    <span class="cart-count">2</span>
                </a>
                <div class="cart-price">¥40</div>
                <a href="cart-detail.html" class="checkout-button">去结算</a>
            </div>
        </div>
    </div>
</body>
</html> 